/**
 * Copyright 2016 IFlyTek. All rights reserved.
 */

package com.jianzh5.entity.enums;

import com.google.common.collect.Maps;

import java.util.Map;

/**
 * <p>
 * <code>NewsTypeEnum</code>
 * </p>
 * 新闻类别枚举类
 * @author jianzhang11
 * @version 1.0 2016/12/28
 */
public enum  NewsTypeEnum {
    COMPANYNEWS(0,"公司新闻"),
    TRADENEWS(1,"行业新闻");

    private int key;
    private String value;

    public static Map<Integer,NewsTypeEnum> newsTypeEnumMap = Maps.newHashMap();
    static {
        for (NewsTypeEnum anEnum : NewsTypeEnum.values()) {
            newsTypeEnumMap.put(anEnum.getKey(),anEnum);
        }
    }

    NewsTypeEnum(int key,String value){
        this.key = key;
        this.value = value;
    }

    public int getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }

}
